'use strict'

module.exports = [
    {
        name:'text'
    },
    {
        //middleware属性用于直接指定一个中间件文件
        //而name则是指定middleware目录中中间件的文件名
        middleware:async(c,next)=>{
            let startTime = Date.now()
            await next();
            let endTime = Date.now()
            console.log(endTime-startTime,'ms')
        }
    }
]